package com.example.function.project.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.project.model.one.ProjectRole;
import com.example.function.project.service.IProjectRoleService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <ProjectRolePojo vo>. <br>
 * <p>
 * generate time:2021-7-27 18:04:51
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class ProjectRolePojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 项目角色id
     */
    private Long id;


    /*
     * 项目角色名称
     */
    private String projectRoleName;


    /*
     * 说明
     */
    private String projectRoleDetail;


    /**
     * 实体对象复制到数据对象
     */
    public static ProjectRolePojo wrapper(ProjectRole projectRole) {
        ProjectRolePojo projectRolePojo = new ProjectRolePojo();
        BeanUtils.copyProperties(projectRole, projectRolePojo);
        final IProjectRoleService projectRoleService = (IProjectRoleService) ApplicationContextProvider.getBean("projectRoleService");

        return projectRolePojo;
    }

}



